export const home=({
    state: {
        snapList:[],
        rankList:[],
        recomList: [],
    },
    mutations: {
        setSnap:(state,snapList)=>state.snapList=snapList,
        setRank:(state,rankList)=>state.rankList=rankList,
        setRecom:(state,list)=>state.recomList=list
    },
    actions: {
        SETSNAP:({commit},list)=>{
            commit('setSnap',list)
        },
        SETRANK:({commit},list)=>{
            commit('setRank',list)
        },
        SETRECOM:({commit},list)=>{
            commit('setRecom',list)
        }
    }
})